package com.hongyun.tms.mapper;

import com.hongyun.tms.common.dto.tug.SelecSearchDTO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;


public interface SearchMapper {


    /**
     * 远程获取下拉框数据源
     * @param selectCommonSearch
     * @param tableName
     * @param valueName
     * @param labelName
     * @returns
     */
    List<Map<String, Object>> getRemoteSelect(@Param("search") SelecSearchDTO selectCommonSearch,
                                              @Param("tableName") String tableName,
                                              @Param("valueName") String valueName,
                                              @Param("labelName") String labelName);
    /**
     * 获取本地下拉框数据源
     * @param tableName
     * @param valueName
     * @param labelName
     * @return
     */
    List<Map<String, Object>> getLocalSelect(@Param("tableName") String tableName,
                                             @Param("valueName") String valueName,
                                             @Param("labelName") String labelName,
                                             @Param("other") String other);


    List<Map<String, Object>> getStaffInfoList(@Param("search") SelecSearchDTO selectCommonSearch);
}
